/**
 * 
 */
package hello.junit;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * @author smart
 *
 */
public class MoneyTest {

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
	}

	/**
	 * Test method for {@link hello.junit.Money#amount()}.
	 */
	@Test
	public void testAmount() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link hello.junit.Money#currency()}.
	 */
	@Test
	public void testCurrency() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link hello.junit.Money#add(hello.junit.Money)}.
	 */
	@Test
	public void testAdd() {
		Money m12CHF= new Money(12, "CHF"); 
	    Money m14CHF= new Money(14, "CHF"); 
	    Money expected= new Money(26, "CHF"); 
	    Money result= m12CHF.add(m14CHF); 
	    assertTrue(expected.equals(result));
	}

	/**
	 * Test method for {@link hello.junit.Money#equals(java.lang.Object)}.
	 */
	@Test
	public void testEqualsObject() {
		fail("Not yet implemented");
	}

}
